import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 获取收益分解
  getIncome: (query) => api.get(`${config.interfaces.type5}maat-workstation/factorExposure/returnDecomposition`, query),
  // 获取超额收益趋势
  getExcessTrend: (query) => api.get(`${config.interfaces.type5}maat-workstation/factorExposure/excessReturnSeries`, query),
  // 获取因子变革数据
  factorContributionDetail: (query) => api.get(`${config.interfaces.type5}maat-workstation/factorExposure/factorContributionDetail`, query),
};
